package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SafeguardSafeMapper;
import com.ruoyi.system.domain.SafeguardSafe;
import com.ruoyi.system.service.ISafeguardSafeService;

/**
 * 保障文本域详情Service业务层处理
 *
 * @author ruoyi
 * @date 2021-05-20
 */
@Service
public class SafeguardSafeServiceImpl implements ISafeguardSafeService
{
    @Autowired
    private SafeguardSafeMapper safeguardSafeMapper;

    /**
     * 查询保障文本域详情
     *
     * @param safeId 保障文本域详情ID
     * @return 保障文本域详情
     */
    @Override
    public SafeguardSafe selectSafeguardSafeById(Long safeId)
    {
        return safeguardSafeMapper.selectSafeguardSafeById(safeId);
    }

    /**
     * 查询保障文本域详情列表
     *
     * @param safeguardSafe 保障文本域详情
     * @return 保障文本域详情
     */
    @Override
    public List<SafeguardSafe> selectSafeguardSafeList(SafeguardSafe safeguardSafe)
    {
        return safeguardSafeMapper.selectSafeguardSafeList(safeguardSafe);
    }

    /**
     * 新增保障文本域详情
     *
     * @param safeguardSafe 保障文本域详情
     * @return 结果
     */
    @Override
    public int insertSafeguardSafe(SafeguardSafe safeguardSafe)
    {
        return safeguardSafeMapper.insertSafeguardSafe(safeguardSafe);
    }

    /**
     * 修改保障文本域详情
     *
     * @param safeguardSafe 保障文本域详情
     * @return 结果
     */
    @Override
    public int updateSafeguardSafe(SafeguardSafe safeguardSafe)
    {
        return safeguardSafeMapper.updateSafeguardSafe(safeguardSafe);
    }

    /**
     * 批量删除保障文本域详情
     *
     * @param safeIds 需要删除的保障文本域详情ID
     * @return 结果
     */
    @Override
    public int deleteSafeguardSafeByIds(Long[] safeIds)
    {
        return safeguardSafeMapper.deleteSafeguardSafeByIds(safeIds);
    }

    /**
     * 删除保障文本域详情信息
     *
     * @param safeId 保障文本域详情ID
     * @return 结果
     */
    @Override
    public int deleteSafeguardSafeById(Long safeId)
    {
        return safeguardSafeMapper.deleteSafeguardSafeById(safeId);
    }
}